package com.symria.server.po;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

/**
 * UserAccount entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "USER_ACCOUNT")
public class UserAccount implements java.io.Serializable {


	// Fields

	private Integer userId;
	private String attr;
	private String receipt;
	private String payMethod;
	private String onlineAccount;
	private String onlineName;
	private String bankAccount;
	private String bankName;
	private String accountHolder;
	private String idCard;
	private Double totalGetmoney=0.0;
	private Double totalPaymoney=0.0;
	private Double toGetMoney=0.0;
	private Double cashMoney=0.0;
	private Double firMonthMoney=0.0;
	private Double payMoney=0.0;
	private Double getMoney=0.0;
	private String address;
	private String postCode;
	private String status;
	private Double cpaPayMoney=0.0;
	private String zhengPic;
	private String fanPic;

	// Constructors

	/** default constructor */
	public UserAccount() {
	}

	/** minimal constructor */
	public UserAccount(Integer userId) {
		this.userId = userId;
	}

	/** full constructor */
	public UserAccount(Integer userId, String attr, String receipt,
			String payMethod, String onlineAccount, String onlineName,
			String bankAccount, String bankName, String accountHolder,
			String idCard, Double totalGetmoney, Double totalPaymoney,
			Double toGetMoney, Double cashMoney, Double firMonthMoney,
			Double payMoney, Double getMoney, String address, String postCode,
			String status, Double cpaPayMoney) {
		this.userId = userId;
		this.attr = attr;
		this.receipt = receipt;
		this.payMethod = payMethod;
		this.onlineAccount = onlineAccount;
		this.onlineName = onlineName;
		this.bankAccount = bankAccount;
		this.bankName = bankName;
		this.accountHolder = accountHolder;
		this.idCard = idCard;
		this.totalGetmoney = totalGetmoney;
		this.totalPaymoney = totalPaymoney;
		this.toGetMoney = toGetMoney;
		this.cashMoney = cashMoney;
		this.firMonthMoney = firMonthMoney;
		this.payMoney = payMoney;
		this.getMoney = getMoney;
		this.address = address;
		this.postCode = postCode;
		this.status = status;
		this.cpaPayMoney = cpaPayMoney;
	}

	// Property accessors
	@Id
	@GeneratedValue(generator = "c-assigned")
	@GenericGenerator(name = "c-assigned", strategy = "assigned")	
	@Column(name = "USER_ID", unique = true, nullable = false)
	public Integer getUserId() {
		return this.userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	@Column(name = "ZHENG_PIC", length = 128)
	public String getZhengPic() {
		return zhengPic;
	}

	public void setZhengPic(String zhengPic) {
		this.zhengPic = zhengPic;
	}
	@Column(name = "FAN_PIC", length = 128)
	public String getFanPic() {
		return fanPic;
	}

	public void setFanPic(String fanPic) {
		this.fanPic = fanPic;
	}

	@Column(name = "ATTR", length = 1)
	public String getAttr() {
		return this.attr;
	}

	public void setAttr(String attr) {
		this.attr = attr;
	}

	@Column(name = "RECEIPT", length = 1)
	public String getReceipt() {
		return this.receipt;
	}

	public void setReceipt(String receipt) {
		this.receipt = receipt;
	}

	@Column(name = "PAY_METHOD", length = 1)
	public String getPayMethod() {
		return this.payMethod;
	}

	public void setPayMethod(String payMethod) {
		this.payMethod = payMethod;
	}

	@Column(name = "ONLINE_ACCOUNT", length = 64)
	public String getOnlineAccount() {
		return this.onlineAccount;
	}

	public void setOnlineAccount(String onlineAccount) {
		this.onlineAccount = onlineAccount;
	}

	@Column(name = "ONLINE_NAME", length = 64)
	public String getOnlineName() {
		return this.onlineName;
	}

	public void setOnlineName(String onlineName) {
		this.onlineName = onlineName;
	}

	@Column(name = "BANK_ACCOUNT", length = 64)
	public String getBankAccount() {
		return this.bankAccount;
	}

	public void setBankAccount(String bankAccount) {
		this.bankAccount = bankAccount;
	}

	@Column(name = "BANK_NAME", length = 64)
	public String getBankName() {
		return this.bankName;
	}

	public void setBankName(String bankName) {
		this.bankName = bankName;
	}

	@Column(name = "ACCOUNT_HOLDER", length = 32)
	public String getAccountHolder() {
		return this.accountHolder;
	}

	public void setAccountHolder(String accountHolder) {
		this.accountHolder = accountHolder;
	}

	@Column(name = "ID_CARD", length = 32)
	public String getIdCard() {
		return this.idCard;
	}

	public void setIdCard(String idCard) {
		this.idCard = idCard;
	}

	@Column(name = "TOTAL_GETMONEY", precision = 16, scale = 4)
	public Double getTotalGetmoney() {
		return this.totalGetmoney;
	}

	public void setTotalGetmoney(Double totalGetmoney) {
		this.totalGetmoney = totalGetmoney;
	}

	@Column(name = "TOTAL_PAYMONEY", precision = 16, scale = 4)
	public Double getTotalPaymoney() {
		return this.totalPaymoney;
	}

	public void setTotalPaymoney(Double totalPaymoney) {
		this.totalPaymoney = totalPaymoney;
	}

	@Column(name = "TO_GET_MONEY", precision = 16, scale = 4)
	public Double getToGetMoney() {
		return this.toGetMoney;
	}

	public void setToGetMoney(Double toGetMoney) {
		this.toGetMoney = toGetMoney;
	}

	@Column(name = "CASH_MONEY", precision = 16, scale = 4)
	public Double getCashMoney() {
		return this.cashMoney;
	}

	public void setCashMoney(Double cashMoney) {
		this.cashMoney = cashMoney;
	}

	@Column(name = "FIR_MONTH_MONEY", precision = 16, scale = 4)
	public Double getFirMonthMoney() {
		return this.firMonthMoney;
	}

	public void setFirMonthMoney(Double firMonthMoney) {
		this.firMonthMoney = firMonthMoney;
	}

	@Column(name = "PAY_MONEY", precision = 16, scale = 4)
	public Double getPayMoney() {
		return this.payMoney;
	}

	public void setPayMoney(Double payMoney) {
		this.payMoney = payMoney;
	}

	@Column(name = "GET_MONEY", precision = 16, scale = 4)
	public Double getGetMoney() {
		return this.getMoney;
	}

	public void setGetMoney(Double getMoney) {
		this.getMoney = getMoney;
	}

	@Column(name = "ADDRESS", length = 128)
	public String getAddress() {
		return this.address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	@Column(name = "POST_CODE", length = 6)
	public String getPostCode() {
		return this.postCode;
	}

	public void setPostCode(String postCode) {
		this.postCode = postCode;
	}

	@Column(name = "STATUS", length = 1)
	public String getStatus() {
		return this.status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	@Column(name = "CPA_PAY_MONEY", precision = 16, scale = 4)
	public Double getCpaPayMoney() {
		return this.cpaPayMoney;
	}

	public void setCpaPayMoney(Double cpaPayMoney) {
		this.cpaPayMoney = cpaPayMoney;
	}


}